home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / gdb / terminal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-21  |  1.4 KB  |  56 lines

  1. /* Terminal interface definitions for GDB, the GNU Debugger.
  2.    Copyright 1986, 1989, 1991, 1992 Free Software Foundation, Inc.
  3.  
  4. This file is part of GDB.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #if !defined (TERMINAL_H)
  21. #define TERMINAL_H 1
  22.  
  23. /* Define a common set of macros -- BSD based -- and redefine whatever
  24.    the system offers to make it look like that.  */
  25.  
  26. #ifdef HAVE_TERMIO
  27.  
  28. #include <termio.h>
  29.  
  30. #undef TIOCGETP
  31. #define TIOCGETP TCGETA
  32. #undef TIOCSETN
  33. #define TIOCSETN TCSETA
  34. #undef TIOCSETP
  35. #define TIOCSETP TCSETAF
  36. #define TERMINAL struct termio
  37.  
  38. #ifdef NO_JOB_CONTROL
  39. # undef TIOCGPGRP
  40. # undef TIOCGPGRP
  41. #endif
  42.  
  43. #else /* no termio */
  44.  
  45. #include <fcntl.h>
  46. #include <sgtty.h>
  47. #include <sys/ioctl.h>
  48. #define TERMINAL struct sgttyb
  49.  
  50. #endif /* no termio */
  51.  
  52. extern void
  53. new_tty PARAMS ((void));
  54.  
  55. #endif    /* !defined (TERMINAL_H) */
  56.